﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Iesi.Collections.Generic;

namespace Wanet.PublicPortal.Common.Domain
{
	public class WebModule: BasePersistentItem
	{

		/// <summary>
		/// Initializes a new instance of the <see cref="WebModule"/> class.
		/// </summary>
		/// <param name="owner">The owner.</param>
		/// <param name="section">The section.</param>
		public WebModule()
		{
			ControlOrder = 1;
			Pages = new HashedSet<WebPage>();
		}

		/// <summary>
		/// Gets or sets the list of pages that contains this module.
		/// </summary>
		/// <value>The pages.</value>
		public virtual ISet<WebPage> Pages
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the name.
		/// </summary>
		/// <value>The name.</value>
		public virtual string Name
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the section.
		/// </summary>
		/// <value>The section.</value>
		public virtual string Section
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the control URL.
		/// </summary>
		/// <value>The control URL.</value>
		public virtual string ControlUrl
		{
			get;
			set;
		}

		/// <summary>
		/// Gets or sets the order.
		/// </summary>
		/// <value>The order.</value>
		public virtual int ControlOrder
		{
			get;
			set;
		}
	}
}
